//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02B
TN_Widget.CreateTable([['Blippi Live','Findlay Toyota Center','Prescott Valley, AZ','Tuesday','5/7/2024','6:00 PM','6016148','Blippi-Live-5-7-2024'],['Celtic Woman','Findlay Toyota Center','Prescott Valley, AZ','Wednesday','5/8/2024','7:30 PM','5960597','Celtic-Woman-5-8-2024'],['Northern Arizona Wranglers vs. Bay Area Panthers','Findlay Toyota Center','Prescott Valley, AZ','Saturday','5/11/2024','6:05 PM','6131998','Northern-Arizona-Wranglers-vs--Bay-Area-Panthers-5-11-2024'],['Northern Arizona Wranglers vs. Tucson Sugar Skulls','Findlay Toyota Center','Prescott Valley, AZ','Saturday','5/25/2024','6:05 PM','6138087','Northern-Arizona-Wranglers-vs--Tucson-Sugar-Skulls-5-25-2024'],['Brit Floyd','Findlay Toyota Center','Prescott Valley, AZ','Sunday','6/9/2024','7:30 PM','6274309','Brit-Floyd-6-9-2024'],['Sesame Street Live!','Findlay Toyota Center','Prescott Valley, AZ','Friday','6/21/2024','6:00 PM','6084253','Sesame-Street-Live--6-21-2024'],['Northern Arizona Wranglers vs. San Antonio Gunslingers','Findlay Toyota Center','Prescott Valley, AZ','Sunday','6/23/2024','3:05 PM','6138088','Northern-Arizona-Wranglers-vs--San-Antonio-Gunslingers-6-23-2024'],['Northern Arizona Wranglers vs. San Diego Strike Force','Findlay Toyota Center','Prescott Valley, AZ','Saturday','6/29/2024','6:05 PM','6138089','Northern-Arizona-Wranglers-vs--San-Diego-Strike-Force-6-29-2024'],['Northern Arizona Wranglers vs. Vegas Knight Hawks','Findlay Toyota Center','Prescott Valley, AZ','Saturday','7/13/2024','6:05 PM','6138090','Northern-Arizona-Wranglers-vs--Vegas-Knight-Hawks-7-13-2024'],['Happy Together Tour','Findlay Toyota Center','Prescott Valley, AZ','Sunday','7/14/2024','7:00 PM','6208818','Happy-Together-Tour-7-14-2024'],['Dwight Yoakam & The Mavericks','Findlay Toyota Center','Prescott Valley, AZ','Saturday','7/27/2024','7:00 PM','6303485','Dwight-Yoakam---The-Mavericks-7-27-2024'],['Lainey Wilson, Jackson Dean & Zach Top','Findlay Toyota Center','Prescott Valley, AZ','Thursday','8/22/2024','7:00 PM','6021098','Lainey-Wilson--Jackson-Dean---Zach-Top-8-22-2024'],['Bonnie Raitt','Findlay Toyota Center','Prescott Valley, AZ','Friday','9/6/2024','7:00 PM','6252573','Bonnie-Raitt-9-6-2024'],['Billy Currington','Findlay Toyota Center','Prescott Valley, AZ','Saturday','9/14/2024','7:00 PM','6408268','Billy-Currington-9-14-2024'],['Gabriel Iglesias','Findlay Toyota Center','Prescott Valley, AZ','Sunday','10/6/2024','7:30 PM','6371415','Gabriel-Iglesias-10-6-2024'],['Parker McCollum','Findlay Toyota Center','Prescott Valley, AZ','Thursday','10/17/2024','7:30 PM','6380600','Parker-McCollum-10-17-2024'],['Endurocross','Findlay Toyota Center','Prescott Valley, AZ','Saturday','10/19/2024','7:00 PM','6306790','Endurocross-10-19-2024'],['Styx','Findlay Toyota Center','Prescott Valley, AZ','Saturday','11/9/2024','7:00 PM','6412260','Styx-11-9-2024']],'Tims Toyota Center','http://www.ticketnetwork.com/ticket/Tims-Toyota-Center-events.aspx');